package com.ssy.lingxi.order.repository;

import com.ssy.lingxi.order.entity.BasePurchaseProcessDO;
import com.ssy.lingxi.order.entity.PlatformPurchaseProcessDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * 平台后台 - 采购流程配置Jpa仓库
 * @author 万宁
 * @version 2.0.0
 * @date 2021-07-26
 */
@Repository
public interface PlatformPurchaseProcessRepository extends JpaRepository<PlatformPurchaseProcessDO, Long>, JpaSpecificationExecutor<PlatformPurchaseProcessDO> {
    boolean existsByProcess(BasePurchaseProcessDO purchaseProcess);

    boolean existsByProcessAndIdNot(BasePurchaseProcessDO purchaseProcess, Long id);
}
